package com.yuanfeng.userms.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName UserTreasureController
 * @Description 聚宝盆用户
 * @Author hyq
 * @Date 2023/6/20 14:14
 * @Version 1.0
 **/
@RestController
@RequestMapping("user/treasure")
public class UserTreasureController extends  BaseController{



    /**
     * 修改聚宝盆用户表信息
     *
     * @param map
     * @return
     */
    @PostMapping("/update")
    public ResponseResult update(@RequestBody Map<String, Object> map) {
        ResponseResult result = userTreasureService.update(map);
        return result;
    }

}
